
def user_info(request):
    """
    用于全局共享的用户信息
    """
    username = request.session.get("username", None)
    return {"username": username}


